package com.zhihuichongcheng.application.ui.approval.activity;

import android.content.Intent;
import android.os.Bundle;

import com.bumptech.glide.Glide;
import com.zhihuichongcheng.application.R;
import com.zhihuichongcheng.application.base.BaseActivity;
import com.zhihuichongcheng.application.widget.photoview.CirclePhotoView;

/**
 *
 * Created by 3water on 2016/11/14.
 */
public class ApprovalProcessActivity extends BaseActivity {
    private CirclePhotoView mImFLow;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_approval_process);
        initView();
        initData();
    }

    private void initView() {
        setTitle("查看流程");
        mImFLow = (CirclePhotoView) findViewById(R.id.im_flow);
        mImFLow.enable();
    }

    private void initData() {
        Intent intent = getIntent();
        if (intent != null && intent.hasExtra("flowImg")) {
            String imgUri = intent.getStringExtra("flowImg");
            Glide.with(mContext).load(imgUri).into(mImFLow);
        }
    }
}
